package hied;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(name = "root")
public class ExampleList {
	@ElementList(name = "list")
	private List<Example> examples = new ArrayList<Example>();

	public void addExample(Example example) {
		this.examples.add(example);
	}

	public List<Example> getExamples() {
		return examples;
	}

	@Override
	public String toString() {
		return examples.toString();
	}
}
